package com.wedo.mall.activity.register;

import android.os.Bundle;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;

import com.e.library.activity.EActivity;
import com.wedo.mall.R;
import com.wedo.mall.fragment.RegisterFragment;

/**
 * 注册-商家注册
 * Created by lxy on 2017/6/15.
 */

public class AgentRegisterActivity extends EActivity {
    @Override
    protected int layout() {
        return R.layout.activity_agent_register;
    }

    @Override
    protected void onActivityCreated(Bundle state) {
        RegisterFragment fragment = RegisterFragment.with().agent();
        final FragmentManager fm = getSupportFragmentManager();
        final FragmentTransaction tr = fm.beginTransaction();
        tr.add(R.id.fl_fragment, fragment).show(fragment).commitAllowingStateLoss();
    }
}
